/*
 * Project Name: showtao
 * File Name: VehicleModelFeatureRepository.java
 * Interface Name: VehicleModelFeatureRepository
 *
 * Copyright 2014 showtao.com
 *
 * Licensed under the showtao.com
 *
 * http://showtao.com
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.showtao.front.repository;

import java.util.Collection;
import java.util.Set;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.showtao.front.domain.VehicleModel;
import com.showtao.front.domain.VehicleModelFeature;

public interface VehicleModelFeatureRepository extends
		JpaRepository<VehicleModelFeature, Long>,
		JpaSpecificationExecutor<VehicleModelFeature> {
    
    Set<VehicleModelFeature> findByModel(VehicleModel model);
    
    Set<VehicleModelFeature> findByIdIn(Collection<Long> ids);
}